﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Task1.aspx.vb" Inherits="Task1.Task1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <p>A simple calculator that adds 2 numbers.
        
        Enter a number between 1 and 1000 in each box, then press Calculate.</p>
    <p>
        <asp:TextBox ID="tb_first" runat="server" BorderColor="#6600CC"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="tb_first" ErrorMessage="Enter a number between 1 and 1000" 
            MaximumValue="1000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
</p>
    <p>
    <br/>
</p>
    <p>
        <asp:TextBox ID="tb_second" runat="server" BorderColor="#6600CC"></asp:TextBox> 
        <asp:RangeValidator ID="RangeValidator2" runat="server" 
            ControlToValidate="tb_second" ErrorMessage="Enter a number between 1 and 1000" 
            MaximumValue="1000" MinimumValue="1" Type="Integer"></asp:RangeValidator>
</p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="Calculate" />
</p>
    <p>
        <asp:Label ID="Label1" runat="server" CssClass="result" Text="Result: "></asp:Label> 
        <nbsp></nbsp>  <%-- non breaking space to separate the label from the result DL 161012--%>
        <asp:Label ID="lbl_result" runat="server" CssClass="result"></asp:Label>
    </p>
<p>
    &nbsp;</p>
</asp:Content>
